package com.keai.service;

import com.keai.entity.PageResult;
import com.keai.entity.QueryPageBean;
import com.keai.pojo.Role;

import java.util.List;

/**
 * @program: SpringMVC_test
 * @author: Mr.Dong
 * @create: 2019-08-25 08:14
 */
public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    void add(Integer[] permissionIds, Integer[] menuIds, Role role);

    void delById(Integer id);

    Role findById(Integer id);

    Integer[] findPermissionIdsByRoleId(Integer id);

    Integer[] findMenuIdsByRoleId(Integer id);

    void edit(Integer[] permissionIds, Integer[] menuIds, Role role);


    List<Role> findAll();

}
